home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Ken Long / NewMaxwell-c / Original / README < prev   
Encoding:
Text File  |  1994-12-04  |  1.4 KB  |  50 lines  |  [TEXT/KAHL]

  1. This is the Maxwell desk accessory.  It is written in version 2.? of
  2. Megamax C.  This is public domain.
  3.  
  4. To compile this, stick it on your Mac, and compile all the .c files.
  5. Link the resulting objects, with damain.o being first.  Make sure to
  6. tell the linker that you are makeing a DRVR, not CODE.
  7.  
  8. Note that these files were edited with tabstops set every four.
  9.  
  10. Here is a suggestion for decreasing the turnaround time
  11. if you are going to make changes to this:
  12.  
  13.     1. Modify some random program that supports DAs to open
  14.     a resource file named TESTDA before it puts up the Apple
  15.     menu.  The editor demo program from Megamax is a good
  16.     choice.  Just change the place where it tries to open
  17.     "clock" to open "TESTDA" instead.
  18.  
  19.     2. Have the linker put the DA in TESTDA.  Be sure to use
  20.     the same resource ID each time, or things might get
  21.     confused.
  22.  
  23.     3. Add an "Edit DA" item to the FILE menu.
  24.  
  25.     4. The code for the "Edit DA" menu item should be something
  26.     like this:
  27.  
  28.         char *argv[] = {
  29.             "file1.c", "file2.c", "file3.c", 0
  30.         };      /* or whatever your source files are called */
  31.  
  32.         edit_da() {
  33.             execv( "editor", argv );
  34.         }
  35.     You might need to use the form "volume:name" for your file
  36.     names, or to get the editor, depending on how you set things
  37.     up.
  38.  
  39. This changes the test cycle from
  40.  
  41.     editor -> compiler -> linker -> resource editor -> finder -> editor
  42.  
  43. to
  44.  
  45.     editor -> compiler -> linker -> program -> editor
  46.  
  47. which can be faster.
  48.  
  49.                             Tim Smith
  50.